Operator Associativity
Operator associativity specifies the order in which operations of the same precedence are performed. Left-to-right associativity means that operations are performed left to right when operators are of equal precedence. For example, the expression
p = q + r + s;
is equivalent to the expression
p = ((q + r) + s);
because the addition operator has left-to-right associativity. Conversely, the expression
w = x = y = z;
is equivalent to the expression
w = ( x = (y = z));
because the assignment operator has right-to-left associativity.

Expressions : Operator Associativity

Nemetschek NA
Phone: 410.290.5114
Fax: 410.290.8050